﻿//Radar class for use in environment updating -- tracks and generates plane and vehicle locations.
//Author: Sam Nagar

//Includes.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

//Begin Definition.
namespace EnvironmentUpdater
{
    public class Radar
    {
        //Data structure needed to hold pointers to all airplanes it is tracking.
        //Data structure needed to hold pointers to all vehicles it is tracking.

        /********************Methods********************************************/

        //Method to add a plan to the list of tracked aircraft.
        public int addPlaneToBeTracked()
        {
            //Return true if successfully added (aka replace the 'true' with array.add later).
            if (true)
            {
                return 1;
            }
            else
            {
                return 0;
            }
        }

        //Method to add a vehicle to the list of tracked vehicles.
        public int addVehicleToBeTracked()
        {
            //Return true if successfully added (aka replace the 'true' with array.add later).
            if (true)
            {
                return 1;
            }
            else
            {
                return 0;
            }
        }

        //Method to generate new plane locations -- I assume we are not connecting to an actual radar, so this 
        //ought to be the method that generates new locations.
        public void generateNewPlaneLocations()
        {
            //Iterate through data structure with pointers to tracked planes and do plane.x + 1, plane.y + 1, in the direction they are traveling.
        }

        public void detectAndReturnPlaneLocation() //Will add parameters and make it not void once plane class is created
        {
            //Return plane location
        }
        
    }
}